package com.ylkj.patientdrug.entity;

public class DrugPackEntity {


    /**
     * packetDrugId : 148805295931394
     * packetId : 148805295931393
     * drugId : 114407344504833
     * name : 松佰 速效救心丸84天
     * genericName : 速效救心丸
     * primary : false
     * price : 0.01
     * quantity : 1
     * imageUrl : https://imgvbp.yilijk.com/236/236e7b8e582b4049a80bc7f1197358b4.jpg
     * packingUnit : {"key":"box","desc":"盒"}
     * spec : 60丸*3瓶
     * usage : {"key":"1","desc":"口服"}
     * dosage : {"key":9,"desc":"1次/天","hour":24}
     * amount : 0.01
     * everytimeQuantity : 1
     * minDosageUnit : {"key":"granule","desc":"粒"}
     * customUsageDosage : null
     * minUnitQuantity : 84
     * rx : true
     * usageAndDosage : null
     * taboo : null
     * announcements : null
     */

    private long packetDrugId;
    private long packetId;
    private long drugId;
    private String name;
    private String genericName;
    private boolean primary;
    private double price;
    private int quantity;
    private String imageUrl;
    /**
     * key : box
     * desc : 盒
     */

//    private PackingUnitBean packingUnit;
    private String spec;
    /**
     * key : 1
     * desc : 口服
     */

//    private UsageBean usage;
    /**
     * key : 9
     * desc : 1次/天
     * hour : 24
     */

    private DosageBean dosage;
    private double amount;
    private String everytimeQuantity;
    /**
     * key : granule
     * desc : 粒
     */

//    private MinDosageUnitBean minDosageUnit;
    private Object customUsageDosage;
    private int minUnitQuantity;
    private boolean rx;
    private Object usageAndDosage;
    private Object taboo;
    private Object announcements;

    public long getPacketDrugId() {
        return packetDrugId;
    }

    public void setPacketDrugId(long packetDrugId) {
        this.packetDrugId = packetDrugId;
    }

    public long getPacketId() {
        return packetId;
    }

    public void setPacketId(long packetId) {
        this.packetId = packetId;
    }

    public long getDrugId() {
        return drugId;
    }

    public void setDrugId(long drugId) {
        this.drugId = drugId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGenericName() {
        return genericName;
    }

    public void setGenericName(String genericName) {
        this.genericName = genericName;
    }

    public boolean isPrimary() {
        return primary;
    }

    public void setPrimary(boolean primary) {
        this.primary = primary;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

//    public PackingUnitBean getPackingUnit() {
//        return packingUnit;
//    }
//
//    public void setPackingUnit(PackingUnitBean packingUnit) {
//        this.packingUnit = packingUnit;
//    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

//    public UsageBean getUsage() {
//        return usage;
//    }
//
//    public void setUsage(UsageBean usage) {
//        this.usage = usage;
//    }

    public DosageBean getDosage() {
        return dosage;
    }

    public void setDosage(DosageBean dosage) {
        this.dosage = dosage;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getEverytimeQuantity() {
        return everytimeQuantity;
    }

    public void setEverytimeQuantity(String everytimeQuantity) {
        this.everytimeQuantity = everytimeQuantity;
    }

//    public MinDosageUnitBean getMinDosageUnit() {
//        return minDosageUnit;
//    }
//
//    public void setMinDosageUnit(MinDosageUnitBean minDosageUnit) {
//        this.minDosageUnit = minDosageUnit;
//    }

    public Object getCustomUsageDosage() {
        return customUsageDosage;
    }

    public void setCustomUsageDosage(Object customUsageDosage) {
        this.customUsageDosage = customUsageDosage;
    }

    public int getMinUnitQuantity() {
        return minUnitQuantity;
    }

    public void setMinUnitQuantity(int minUnitQuantity) {
        this.minUnitQuantity = minUnitQuantity;
    }

    public boolean isRx() {
        return rx;
    }

    public void setRx(boolean rx) {
        this.rx = rx;
    }

    public Object getUsageAndDosage() {
        return usageAndDosage;
    }

    public void setUsageAndDosage(Object usageAndDosage) {
        this.usageAndDosage = usageAndDosage;
    }

    public Object getTaboo() {
        return taboo;
    }

    public void setTaboo(Object taboo) {
        this.taboo = taboo;
    }

    public Object getAnnouncements() {
        return announcements;
    }

    public void setAnnouncements(Object announcements) {
        this.announcements = announcements;
    }

    public static class PackingUnitBean {
        private String key;
        private String desc;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    public static class UsageBean {
        private String key;
        private String desc;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    public static class DosageBean {
        private int key;
        private String desc;
        private int hour;

        public int getKey() {
            return key;
        }

        public void setKey(int key) {
            this.key = key;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public int getHour() {
            return hour;
        }

        public void setHour(int hour) {
            this.hour = hour;
        }
    }

    public static class MinDosageUnitBean {
        private String key;
        private String desc;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
